#define SOL_ALL_SAFETIES_ON 1
#include <sol/sol.hpp>

#include "./../luaQt.h"
#include "./../luaQString.h"

/* function to release collected object via destructor */
/* function to release collected object via destructor */
namespace LuaQt{
	void open_luaQString(sol::table& module) {
		module.set_function("NewQString", sol::overload(
				[]() { return QString(); }
				,[](const std::string& str) { return QString(str.c_str()); }
				,[](const QString& str) { return str; }
				)
		);
		module.new_usertype<QString>("QString"
				,sol::constructors< QString() >()
		);
	}
};

